/**
 * Copyright 2008-2009. Chongqing Communications Industry Services Co.,Ltd Information Technology Branch. All rights
 * reserved. <a>http://www.cqcis.com</a>
 */
package com.cqcis.uip.base.framework.service.impl;

import com.cqcis.uip.base.framework.common.InterfaceLog;
import com.cqcis.uip.base.framework.common.Task;
import com.cqcis.uip.base.framework.utils.ByteBuffer;

/**
 * @author huangmy
 * @date   2008-11-3
 */
public class IntfLogByteBufferAdaptor {
	private ByteBuffer sendBuf; // sendBuf
	private ByteBuffer recvBuf; // recvBuf
	private InterfaceLog intfLog;
	
	public IntfLogByteBufferAdaptor(Task task) {
		this.intfLog = new InterfaceLog(task.getTaskId(), null);
		this.sendBuf = ByteBuffer.allocate(1024).setAutoExpand(true);
		this.recvBuf = ByteBuffer.allocate(1024).setAutoExpand(true);
	}

	public ByteBuffer getSendBuf() {
		return sendBuf;
	}

	public ByteBuffer getRecvBuf() {
		return recvBuf;
	}

	public InterfaceLog getIntfLog() {
		return intfLog;
	}
}
